import {get} from '../get'
import {request} from '../request'

export const getBorehole = (pageNum, pageSize, searchModel) => {
  return get.get(`/borehole/${pageNum}/${pageSize}`, {
    params: searchModel
  })
}

export const getDictChild = (parentName) => {
  return get.get('/borehole/dict/child', {
    params: {
      name: parentName
    }
  })
}

export const deleteWell = (wellId) => {
  return request.delete(`/borehole/${wellId}`)
}

export const updateWell = (wellId, updateWell) => {
  return request.put(`/borehole/${wellId}`, updateWell)
}
